package com.kzw.service;

import com.kzw.dao.ArticleDao;
import com.kzw.entity.Article;

import my.db.Page;

public class ArticleService {

	private ArticleDao dao = new ArticleDao();
	
	public Page<Article> list(Page<Article> page, String title) {
		return dao.findPage(page, title);
	}
	
	public void save(Article article) {
		dao.save(article);
	}
	
	public Article get(Long id) {
		return dao.get(id);
	}
	
	public void update(Article article) {
		dao.update(article);
	}
}
